package com.cskaoyan.javase.oop2.encapsulate._1extends._7initialization._3notice;
/**
 * 继承当中构造器的alt+回车快捷键的使用
 *
 * @since 11:44
 * @author wuguidong@cskaoyan.onaliyun.com
 */
public class Demo2 {
}
class Person{
    int age;
    String name;
    double salary;
    String gender;

    public Person() {
    }

    public Person(String name, double salary) {
        this.name = name;
        this.salary = salary;
    }

    public Person(int age, String name, double salary, String gender) {
        this.age = age;
        this.name = name;
        this.salary = salary;
        this.gender = gender;
    }
}
class Student extends Person{
    double score;

    public Student(double score) {
        // super();
        this.score = score;
    }

    public Student(String name, double salary, double score) {
        super(name, salary);
        this.score = score;
    }

    public Student(int age, String name, double salary, String gender, double score) {
        super(age, name, salary, gender);
        this.score = score;
    }
}